package com.shopping.dao;

import com.shopping.pojo.OrderItem;

import java.util.List;

public interface OrderItemDao {
    // 获取订单详情列表
    public List<OrderItem> selectOrderItemByOrderId(Integer id);
    // 获取订单详情列表数量
    public int getOrderItemNum(Integer id);
    // 验证商家订单是否全部完成
    public int checkOrdersStatusByBusinessId(String businessId);
    // 验证产品订单是否全部完成
    public int checkOrdersStatusByProductId(Integer productId);
    // 获取商家订单数量
    public int getUndeliveredNum(String businessId);
    public int getShippedNum(String businessId);
    public int getReceivedNum(String businessId);
    // 订单收货
    public int updateOrderItemReceipt(Integer id);
    // 新增订单
    public int insertOrderItem(OrderItem orderItem);
    // 订单发货
    public int updateOrderStatus(String orderId);
}
